/**************************************************************************/
/*  Copyright (C) School of Software Engineering of USTC, 2013             
/*                                                                        
/*  FILE NAME: "FolderOpt.h"                                                  
/*  PRINCIPAL AUTHOR: SA12226340(Song Zeyu)                                                                                                          
/*  LANGUAGE: C++/C                                                          
/*  TARGET ENVIRONMENT: Linux                                             
/*  DATE OF FIRST RELEASE: 2013-05-13                                    
/*  DESCRIPTION:Realization mail spam filtering               
/**************************************************************************/

#ifndef _FOLDEROPT_H_
#define _FOLDEROPTs_H_
#include <map>
//#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
using namespace std;

/*
*训练邮件集的垃圾邮件和正常邮件，得到垃圾库和合法库
*/
void Init_Folder_Map(map<string,int> &spam_map,map<string,int> &pam_map,map<string,int> mapword[]);

/*
*将文件夹里的文件以链表的形式存放
*/
struct FileList *Folder(char *foldername);

/*
*对文件夹里的文件进行中文分词提取
*/
int FileExtract(struct FileList *node,map<string,int>mapword[]);

/*
*输出文件夹里文件的路径
*/
void DisFolderFilesName(struct FileList *node);



#endif
